home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _8EC1443AABB14FC99FB5AC29487998DE < prev    next >
Encoding:
Text File  |  2004-01-06  |  2.7 KB  |  101 lines

  1. VehicleMountedRocket = {
  2.     name = "VehicleMountedRocket",
  3.     
  4.     PlayerSlowDown = 1.0,                                    -- factor to slow down the player when he holds that weapon
  5. --    character    = "Objects/Vehicles/Mounted_gun/m2.cga",        
  6.     ---------------------------------------------------
  7.     ActivateSound = Sound:Load3DSound("Sounds/Weapons/M4/m4weapact.wav"),    -- sound to play when this weapon is selected
  8.     AimMode=1,
  9.     
  10.     ZoomNoSway=1,             --no sway in zoom mode
  11.     ZoomOverlayFunc=AimModeZoomHUD.DrawHUD,
  12.     ---------------------------------------------------
  13.     ZoomFixedFactor=1,
  14.     FireParams ={                                                    -- describes all supported firemodes
  15.     {
  16.         vehicleWeapon = 1,        
  17.         HasCrosshair=1,
  18.         no_zoom = 1,
  19.         draw_thirdperson = 1,--if 1 the crosshair will be showed also in thirdperson view
  20.         AmmoType="VehicleRocket",
  21.         projectile_class="VehicleRocket",
  22.         reload_time=4.5, -- default 3.82
  23.         fire_rate=3.65,
  24.         fire_activation=FireActivation_OnPress,
  25.         bullet_per_shot=1,
  26.         bullets_per_clip=1,
  27.         FModeActivationTime = 0.0,
  28.         iImpactForceMul = 10,
  29.         
  30.         FireSounds = {
  31.             "Sounds/Weapons/rl/FINAL_RL_MONO.wav",
  32.         },
  33.         FireSoundsStereo = {
  34.             "Sounds/Weapons/rl/FINAL_RL_STEREO.wav",
  35.             
  36.         },
  37.         DrySound = "Sounds/Weapons/AG36/DryFire.wav",
  38.  
  39.         LightFlash = {
  40.             fRadius = 5.0,
  41.             vDiffRGBA = { r = 1.0, g = 1.0, b = 0.0, a = 1.0, },
  42.             vSpecRGBA = { r = 0.3, g = 0.3, b = 0.3, a = 1.0, },
  43.             fLifeTime = 0.25,
  44.         },
  45.  
  46.         SoundMinMaxVol = { 255, 5, 100000 },
  47.     },
  48.     -- special AI firemode follows
  49.     {
  50.         vehicleWeapon = 1,        
  51.         HasCrosshair=1,
  52.         draw_thirdperson = 1,--if 1 the crosshair will be showed also in thirdperson view
  53.         AmmoType="Unlimited",
  54.         projectile_class="VehicleRocket",
  55.         reload_time=4.5, -- default 3.82
  56.         fire_rate=3.65,
  57.         fire_activation=FireActivation_OnPress,
  58.         bullet_per_shot=1,
  59.         bullets_per_clip=1,
  60.         FModeActivationTime = 0.0,
  61.         iImpactForceMul = 10,
  62.         
  63.         FireSounds = {
  64.             "Sounds/Weapons/rl/FINAL_RL_MONO.wav",
  65.         },
  66.         FireSoundsStereo = {
  67.             "Sounds/Weapons/rl/FINAL_RL_STEREO.wav",
  68.             
  69.         },
  70.         DrySound = "Sounds/Weapons/AG36/DryFire.wav",
  71.  
  72.         LightFlash = {
  73.             fRadius = 5.0,
  74.             vDiffRGBA = { r = 1.0, g = 1.0, b = 0.0, a = 1.0, },
  75.             vSpecRGBA = { r = 0.3, g = 0.3, b = 0.3, a = 1.0, },
  76.             fLifeTime = 0.25,
  77.         },
  78.  
  79.         SoundMinMaxVol = { 255, 5, 100000 },
  80.     },
  81.     
  82.     },
  83.  
  84.     SoundEvents={
  85.     --    animname,    frame,    soundfile        
  86.     {    "reload1",    20,            Sound:LoadSound("Sounds/Weapons/M4/M4_20.wav")},
  87.     {    "reload1",    33,            Sound:LoadSound("Sounds/Weapons/M4/M4_33.wav")},
  88.     {    "reload1",    47,            Sound:LoadSound("Sounds/Weapons/M4/M4_47.wav")},
  89.     },
  90. }
  91.  
  92. CreateBasicWeapon(VehicleMountedRocket);
  93.  
  94. function VehicleMountedRocket.Client:OnEnhanceHUD(bHit)
  95.  
  96. --System:Log("\001 >>> aAimDist  "..self.auto_aiming_dist);
  97.  
  98.     BasicWeapon.DoAutoCrosshair( self, bHit);
  99.     
  100. end
  101.